package test3.A1_4;

// 现金支付方式
class Cash extends Payment {
    private double cashTendered; // 支付金额

    // 构造函数
    public Cash(double amount, double cashTendered) {
        super(amount);
        this.cashTendered = cashTendered;
    }

    // Getter和Setter方法
    public double getCashTendered() {
        return cashTendered;
    }

    public void setCashTendered(double cashTendered) {
        this.cashTendered = cashTendered;
    }
}
